import request from '@/router/axios';


//列表
export const fmeamodeList = (current, size, params) => {
  return request({
    url: '/api/hg-public/fmeamode/page',
    method: 'get',
    params: {
      current,
      size,
      ...params
    }
  })
}
//添加
export const addFmeamode = (mold) => {
  return request({
    url: '/api/hg-public/fmeamode/submit',
    method: 'post',
    data: mold
  })
}

//编辑时获取数据
export const fmeamodeDetail = (id) => {
  return request({
    url: '/api/hg-public/fmeamode/detail',
    method: 'get',
    params: {
      id
    }
  })
}

//编辑
export const updateFmeamode = (mold) => {
  return request({
    url: '/api/hg-public/fmeamode/submit',
    method: 'post',
    data: mold
  })
}

//删除
export const removeFmeamode = (ids) => {
  return request({
    url: '/api/hg-public/fmeamode/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

